package me.zhangsanfeng.base.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import me.zhangsanfeng.frame.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import java.sql.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 价格信息
 * </p>
 *
 * @author ZhangYao
 * @since 2018-10-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="Price对象", description="价格信息")
public class Price extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一标识")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "商品标识")
    private String productId;

    @ApiModelProperty(value = "供货商标识")
    private String supplierId;

    @ApiModelProperty(value = "采购批次")
    private String batchNo;

    @ApiModelProperty(value = "采购价")
    private BigDecimal purchasePrice;

    @ApiModelProperty(value = "销售价")
    private BigDecimal salesPrice;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "定价人")
    private Integer rater;

    @ApiModelProperty(value = "定价日期")
    private Date priceDate;


}
